home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / Coldfusion / coldfusion-60-win-en.exe / compose.cfm < prev    next >
Encoding:
Text File  |  2002-04-09  |  1.4 KB  |  60 lines

  1. m and display it. 
  2. </p>
  3.  
  4. <!--- Loop over the query results using cfoutput --->
  5. <cfoutput query="TheItem">
  6. <p>
  7. #CategoryName#<br>
  8. <b>#ItemName#</b> - <i>#Teaser#</i><br> 
  9. (Part #PartNum#)<br><br>
  10. Only #DollarFormat(ItemCost)#
  11. </p>
  12.  
  13. <p>
  14. #ItemDescription#
  15. </p>
  16. </cfoutput>
  17.  
  18. <br><br>
  19. <a href="index.cfm">search again</a>
  20. <br><br>
  21.  
  22. </cfmodule><!--- 
  23. **
  24. * CFMX Example Applications
  25. *
  26. * Copyright (c) 2002 Macromedia.  All Rights Reserved.
  27. *
  28. * YOUR RIGHTS WITH RESPECT TO THIS SOFTWARE IS GOVERNED BY THE
  29. * TERMS AND CONDITIONS SET FORTH IN THE CORRESPONDING EULA.
  30. *
  31. **
  32.  --->
  33.  
  34. <cfmodule template="../tags/layout.cfm" pageName="Data Drill-Down Example">
  35.  
  36. <!---
  37.     Use CFQUERY to get all of the store's categories.
  38.     These will be used to populate the form's select box.
  39. --->    
  40. <cfquery name="Categories" dataSource="#request.app.dsn#">
  41. select        CategoryID, CategoryName
  42. from        tblCategories
  43. order by    CategoryName
  44. </cfquery>
  45.  
  46. <p>
  47. In the Data Drill-Down example, a select box populated by items in the
  48. database is one of the options for users to select search criteria. The
  49. results page lists all matches and each one is a hyperlink to a detail
  50. page. If there are more than 5 results, a Prior/Next link is created to
  51. let the user page through the results.
  52. </p>
  53.  
  54.  
  55. <p>
  56. Search suggestions for example data: 
  57.  
  58. <ul>
  59.     <li>For <i>Item Name</i> searches, try 'Rocket' or 'Ripper'. 
  60.     <li>Leave <i>Item Name</i> blank and